package com.hm.two;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class XiaoMing {
	@Autowired
	private GirlFriend gf;
	
	public GirlFriend gf() {
		return gf;
	}

	public GirlFriend getGf() {
		return gf;
	}

	public void setGf(GirlFriend gf) {
		this.gf = gf;
	}

	@Override
	public String toString() {
		return "XiaoMing [gf=" + gf + "]";
	}

	public XiaoMing(GirlFriend gf) {
		this.gf = gf;
	}

	public XiaoMing() {
	}
	
}
